const initQueryParamsPending = {
  businessCode: undefined,
  flowNameOrCode: undefined
}
const initQueryParamsDone = {
  taskName: undefined,
  businessCode: undefined,
  dealStartTime: undefined,
  dealEndTime: undefined
}
const initQueryParamsCanceled = {
  businessCode: undefined,
  taskName: undefined,
  flowNameOrCode: undefined,
  dealStartTime: undefined,
  dealEndTime: undefined,
  cancelStartTime: undefined,
  cancelEndTime: undefined

}
const state = {
  // 列表查询条件
  queryParamsPending: {
    ...initQueryParamsPending
  },
  queryParamsDone: {
    ...initQueryParamsDone
  },
  queryParamsCanceled: {
    ...initQueryParamsCanceled
  }

}
const mutations = {
  resetPendingQueryParams (state) {
    // eslint-disable-next-line no-param-reassign
    state.queryParamsPending = {
      ...initQueryParamsPending
    }
  },
  resetDoneQueryParams (state) {
    // eslint-disable-next-line no-param-reassign
    state.queryParamsDone = {
      ...initQueryParamsDone
    }
  },
  resetCanceledQueryParams (state) {
    // eslint-disable-next-line no-param-reassign
    state.queryParamsCanceled = {
      ...initQueryParamsCanceled
    }
  }
}
const actions = {
}

export default {
  state,
  mutations,
  actions
}
